#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
@Project ：图灵学习 
@File    ：4.装饰带有参数的函数.py
@IDE     ：PyCharm 
@Author  ：ChenLiGao
@Date    ：2024-10-28 14:58
'''

def debug(fun_obj):
    def wrapper(*args, **kwargs):
        print(f"函数名称：{fun_obj.__name__}")
        print(args, kwargs)
        fun_obj(*args, **kwargs)
    return wrapper

@debug
def pring_info(name, gender, address):
    print(f"姓名：{name}，性别：{gender}，地址：{address}")

pring_info("安娜", "女", address = "长沙")